package week6;

import java.util.Scanner;

public class Main7 {
	private static Scanner in;
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		in=new Scanner(System.in);
		User user=new User("zheng","xiamen","1234567890","1234",1000);
		int n=in.nextInt();
		for (int i = 0; i <n; i++) {
			user.getCart().add(new Commodity(in.next(),in.nextDouble(),in.nextInt()));			
		}
		user.display();

	}

}
